#include <stdio.h>
#include "minilog.h"

#define VERBOSE		INFO | PROCESS | RESULT
#define LOGGING		LOGNONE
#include "minilog.h"
int main(){
	int i;
	int s;
	minilog_start("",VERBOSE,LOGGING);
	LOG(ERROR,"This is a test: int=%d float=%f string=%s\n",12,34.54,"reza");
	LOG(INFO,"Adding numbers %d to %d:\n",1,5);
	s=0;
	for(i=1;i<5;i++){
		s+=i;
		LOG(PROCESS,"%d+",i);
	}
	s+=i;
	LOG(PROCESS,"%d=",i);
	LOG(RESULT,"%d",s);
	minilog_stop();
	return 0;
}
